﻿using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Bricks.Business.Models.QualityManagement
{
    /// <summary>
    /// 质量通报
    /// </summary>
    [Description("质量通报")]
    public partial class QualityCircular : EntityBase<Guid>
    {
        public QualityCircular()
        {
            ID = GuidHelper.NewGuid();
        }

        [Display(Name = "通报名称")]
        [StringLength(256)]
        public string CircularName { get; set; }

        [Display(Name = "是否整改")]
        public bool IsCorrective { get; set; }  //默认为false

        [Display(Name = "发布时间")]
        public DateTime PublishTime { get; set; }  //默认取当前时间

        [Display(Name = "发布单位")]
        public Guid PublishOrgID { get; set; }  //取登录人的单位ID

        [Display(Name = "发布人")]
        public Guid PublishUserID { get; set; }  //登录人ID

        [Display(Name = "整改标段")]
        public string CorrectiveSectionIDs { get; set; }  //此处可能有多个，格式：ID1,ID2,ID3

        [Display(Name = "通报内容")]
        public string Content { get; set; }
    }
}
